/*
 * Created Jul 7, 2010
 */
package ltg.ps.phenomena.zooroom;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * TODO Description
 *
 * @author Gugo
 */
public class Player {
	private Logger log = LoggerFactory.getLogger(Player.class);

	private List<Record> playerData = null;

	
	public Player() {
		playerData = new ArrayList<Record>();
	}


	public int getNumRecords() {
		return playerData.size();
	}


	public List<Record> getData() {
		return playerData;
	}


	public void printTable() {
		for (Iterator<Record> iterator = playerData.iterator(); iterator.hasNext();) {
			log.info(iterator.next().toString());
		}
	}


	public void setRecord(int timeInSeconds, float lat, float lon) {
		playerData.add(new Record(lat, lon, timeInSeconds));
	}
}